import com.sun.org.apache.xerces.internal.impl.dv.xs.DoubleDV;

class Anima {
    int age;
    String color;
    String name;
    public void eat(){
        System.out.println(this.name + "吃东西");
    }
    public void run(){
        System.out.println(this.name + "冲刺");
    }
    public Anima(){

    }
}
class Dog extends Anima{
    public  Dog(String name){
        super();
        this.name = name;
    }
    public void bark(){
        System.out.println(this.name + "狗旺旺");
    }
}
class Cat extends Anima{
    public void miaoMiao(){
        System.out.println(this.name + "猫喵喵");
    }
}
public class test2 {
    public static void main(String[] args) {
        Dog dog1 = new Dog("馒头");
        dog1.bark();
    }
}

